<template>
<div>
  <CardS :Cards-data="CardsData" class="cardS_style"></CardS>
  <el-empty  v-show="Nodata"  :image-size="200" style="padding-top: 280px"></el-empty>
</div>
</template>

<script>
import axios from 'axios'
import CardS from '@/views/Back/Student/components/CardS'
export default {
  name: "book_mark",
  components: { CardS },
  data(){
    return{
      Nodata:true,
      CardsData: []
    }
  },
  created () {
    const _this=this
    axios.post('http://localhost:8080/get_book_mark_infos?bm_account_number='+localStorage.getItem("username"))
      .then(function (response) {
        console.log(response.data)
        _this.CardsData=response.data
        if(response.data.length!==0)
        {
          _this.Nodata=false
        }

      })
      .catch(function (error) {
        console.log(error);
      });
  }
}
</script>

<style scoped>
.cardS_style{
  width: 90%;
  left: 5%;
  top: 20px;
}
</style>
